import request from '@/utils/request'

// 查询作业提交记录列表
export function listSubmit(query) {
  return request({
    url: '/eduManage/submit/list',
    method: 'get',
    params: query
  })
}

// 查询作业提交记录详细
export function getSubmit(submitId) {
  return request({
    url: '/eduManage/submit/' + submitId,
    method: 'get'
  })
}

// 新增作业提交记录
export function addSubmit(data) {
  return request({
    url: '/eduManage/submit',
    method: 'post',
    data: data
  })
}

// 修改作业提交记录
export function updateSubmit(data) {
  return request({
    url: '/eduManage/submit',
    method: 'put',
    data: data
  })
}

// 删除作业提交记录
export function delSubmit(submitId) {
  return request({
    url: '/eduManage/submit/' + submitId,
    method: 'delete'
  })
}
